/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 16:19:22
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 16:22:03
 */
public class Rectangle extends Shape{
    private double height;
    private double width;
    public Rectangle(String color,double height,double width){
        super(color);
        this.height = height;
        this.width = width;
    }
    @Override
    public double area(){
        return height * width;
    }
}
